package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.MirrorStageWorkEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 镜像阶段任务
 * @author mingliang.cao
 */
@Mapper
@Repository
public interface MirrorStageWorkDao {
    Integer insert(MirrorStageWorkEntity entity);

    void insertBatch(List<MirrorStageWorkEntity> list);

    MirrorStageWorkEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(MirrorStageWorkEntity entity);

    List<MirrorStageWorkEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}